package com.sunlei.webtest.controller;

import com.sunlei.webtest.bean.User;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * Created by 001 on 2017/7/19.
 */
@RestController
@RequestMapping("/jsonp")
public class JsonpTestController {


    @RequestMapping(value = "/testJsonp",produces = MediaType.APPLICATION_JSON_VALUE)
    public User testJsonp(){

        return (new User("test",18,"test"));
    }
}